<!--{Atemplate tpl/header}-->

<!--{eval echo $this->Ahtml_js_aurl();}-->
<script>
var columns = {"$this->model->table":$column_json};
var url_info = '$this->Amodr-info-';
var model = $listjson;
function checkall(value) {
	if(value=='0'){
		jQuery(".checkbox").attr("checked","checked");
		jQuery("#chkall_del").removeAttr("disabled","disabled");
	}
	if(value=='1'){
		jQuery(".checkbox").removeAttr("checked","checked");
		jQuery("#chkall_del").attr("disabled","disabled");
	}
	if(value=='auth'){
		var chkall = jQuery("input:checked").val();
		if(chkall == null){
			alert('请先选择');
			return false;
		}else{
			return true;
		}
	}
}
var Awform = new Apps.form('alogs','Awform',{'add':{width:640,height:'auto'}},columns.$this->model->table);

jQuery(document).ready(function(){

});
</script>

<form action="" method="get" class="-main_top">
	<input type="button" value="栏目设置" onclick="Awform.column()"/>
	状态：
	<!--{form 'select','status',$status,'',$post[status]}--> 
	<select name="sop">
		<option value="">模糊查询</option>
		<!--{loop $column_sop $key $val}-->
		<option value="$key" <!--{if $key==$post[sop]}-->selected="selected"<!--{/if}-->>$val</option>
		<!--{/loop}-->
	</select>
	<input type="text" name="search" value="$post[search]" size="20"/>
	<input type="submit" value="搜索">
</form>
<div class="_data_column dis_none">
	<div class="_list">$column_html</div>
	<input type="submit" value="确定"/>
</div>
<!--{Atemplate alogs/left}-->
<div class="-main_list _host_right">
<form action="" method="POST">
<table class="-table">
	<tr>
<!--{loop $columns $key $val}-->
		<th><b><a href="$page->theurl-aorder-$key,$pages->neworder$pages->other">$val</a></b></th>
<!--{/loop}-->
	</tr>
<!--{loop $rs[data] $key $val}-->
<!--{eval
$mid = $val->$key_name;
}-->
	<tr>
<!--{loop $columns $k $v}-->
		<td><p>
		{if $enum[$k]}
			$enum[$k][$val[$k]]
		{else}
			$val[$k]
		{/if}
		</p></td>
<!--{/loop}-->
	</tr>
<!--{/loop}-->
</table>
</form>
</div>
<!--{Atemplate alogs/nav}-->

<!--{Atemplate tpl/nofooter}-->